/*
 * @Date: 2023-03-08 16:22:05
 * @LastEditors: Zireael 1193875164@qq.com
 * @LastEditTime: 2023-03-24 15:05:28
 * @FilePath: \A19\backend\src\shared\protocols\QuestionsSys\PtlEditQuestion.ts
 */
import { BaseRequest, BaseResponse, BaseConf } from "../base";
import { question, questions } from '../../types/Question';
import { ObjectId } from "mongodb";
import { answer } from "../../types/Answer";

export interface ReqEditQuestion extends BaseRequest {
    _id:ObjectId
    question:question
    answer:answer
}

export interface ResEditQuestion extends BaseResponse {
    question:questions
}

export const conf: BaseConf = {
    needRole: "teacher",
    needLogin: true,
}